package com.infolab.aims.domain.asset;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.infolab.aims.common.bean.AbstractModelBean;

@Entity
@Table(name="AMTB_CONSUMPTION_DETAIL")
public class AssetConsumptionDetail extends AbstractModelBean implements Serializable {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer assetConsumptionDetailId;
	
	@ManyToOne
	@JoinColumn(name="assetConsumptionId")
	private AssetConsumption assetConsumption;
	
	private Integer quantityBefore;
	
	private Integer quantityUsed;
	
	private String transactionType;
	
	private String refNo;

	public Integer getAssetConsumptionDetailId() {
		return assetConsumptionDetailId;
	}

	public void setAssetConsumptionDetailId(Integer assetConsumptionDetailId) {
		this.assetConsumptionDetailId = assetConsumptionDetailId;
	}

	public AssetConsumption getAssetConsumption() {
		return assetConsumption;
	}

	public void setAssetConsumption(AssetConsumption assetConsumption) {
		this.assetConsumption = assetConsumption;
	}

	public Integer getQuantityBefore() {
		return quantityBefore;
	}

	public void setQuantityBefore(Integer quantityBefore) {
		this.quantityBefore = quantityBefore;
	}

	public Integer getQuantityUsed() {
		return quantityUsed;
	}

	public void setQuantityUsed(Integer quantityUsed) {
		this.quantityUsed = quantityUsed;
	}

	public String getTransactionType() {
		return transactionType;
	}

	public void setTransactionType(String transactionType) {
		this.transactionType = transactionType;
	}

	public String getRefNo() {
		return refNo;
	}

	public void setRefNo(String refNo) {
		this.refNo = refNo;
	}
	
	
}
